package com.funo.business.entities;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;


/**
 * TemplateItem entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="T_TEMPLATE_ITEM"
    ,schema="UNIBASE"
)
@DynamicInsert
@DynamicUpdate
public class TemplateItem  implements java.io.Serializable {


    // Fields    

     private String templateId;
     private String templateName;
     private String templateUrl;
     private int isValid;
     private Date insertDt;

    // Constructors

    /** default constructor */
    public TemplateItem() {
    }

    
    /** full constructor */
    public TemplateItem(String templateName, String templateUrl, int isValid) {
        this.templateName = templateName;
        this.templateUrl = templateUrl;
        this.isValid = isValid;
    }

   
    // Property accessors
//    @GenericGenerator(name="generator", strategy="uuid.hex")@Id @GeneratedValue(generator="generator")
    @Id 
    @Column(name="TEMPLATE_ID", unique=true, nullable=false, length=40)

    public String getTemplateId() {
        return this.templateId;
    }
    
    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }
    
    @Column(name="TEMPLATE_NAME", length=40)

    public String getTemplateName() {
        return this.templateName;
    }
    
    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }
    
    @Column(name="TEMPLATE_URL", length=100)

    public String getTemplateUrl() {
        return this.templateUrl;
    }
    
    public void setTemplateUrl(String templateUrl) {
        this.templateUrl = templateUrl;
    }

    
    @Column(name="IS_VALID", nullable=false, precision=1, scale=0,insertable=false)

    public int getIsValid() {
        return this.isValid;
    }
    
    public void setIsValid(int isValid) {
        this.isValid = isValid;
    }
   
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="INSERT_DT", length=7,insertable=false,updatable=false)

    public Date getInsertDt() {
        return this.insertDt;
    }
    
    public void setInsertDt(Date insertDt) {
        this.insertDt = insertDt;
    }







}